from apps.system.learn.baseViews import *

class LearnViewSet(BaseLearnViewSet):

    def get_queryset(self):
        _list = LearnDao().findAll().exclude(lessee__id=100).select_related('lessee').prefetch_related('users')
        return _list

    @action(methods=['post'], detail=False)
    def handle(self, request):
        params = getRequestParams(self.request)

        return Response(response_message('操作成功'))